package pacman;
/**
 * A case that can be accessed by anything.
 */
public class cWay implements iCase {
    /**
     * Creates a new instance of cWay.
     */
    public cWay() {
    }

    /**
     * Returns true, as the case is accessible for anything.
     * @param caller The object who wants to access the case. Useless, but still needed because of iCase.
     * @return True, as this case is accessible for anything.
     */
    public boolean isAccessible(Object caller) {
        return true;
    }

    /**
     * Does an access to the case.
     * @param pacman The pacman who wants to access the case.
     */
    public void Access(cPacman pacman) {
    }

    /**
     * Returns the name of the image to be loaded for this case.
     * @return A string containing the name of the image to be loaded for this case.
     */
    public String getImageName() {
        return "way";
    }
}
